package test.vo
{
	import _Pan3D.program.Shader3D;
	
	public class TreeShader extends Shader3D
	{

		
		public static var TREE_SHADER:String = "TREE_SHADER";
		public function TreeShader()
		{
			vertex = 
				"m44 vt0, va0, vc4 \n" +
				"m44 op, vt0, vc0 \n" +
				"mov v1, va1";
			fragment =
				"tex ft1, v1, fs1 <2d,clamp,repeat>\n"+
				"slt ft2.w,fc0.w,ft1.w\n"+
				"mul ft2.x,fc0.x,ft1.x\n"+
				"mul ft2.y,fc0.y,ft1.y\n"+
				"mul ft2.z,fc0.z,ft1.z\n"+
				"sub ft2.w, ft2.w, fc0.x\n"+
				"kil ft2.w\n"+
				"mov oc, ft2"
		}
	}
}